import request from '@/utils/request'

// 查询半成品仓库管理列表
export function listSfpWarehouse(query) {
  return request({
    url: '/sfpWarehouse/sfpWarehouse/list',
    method: 'get',
    params: query
  })
}

// 查询半成品仓库管理详细
export function getSfpWarehouse(id) {
  return request({
    url: '/sfpWarehouse/sfpWarehouse/' + id,
    method: 'get'
  })
}

// 新增半成品仓库管理
export function addSfpWarehouse(data) {
  return request({
    url: '/sfpWarehouse/sfpWarehouse',
    method: 'post',
    data: data
  })
}

// 半成品仓库出库
export function outSfpWarehouse(data) {
  return request({
    url: '/sfpWarehouse/sfpWarehouse/outSfpWarehouse',
    method: 'put',
    data: data
  })
}

// 修改半成品仓库管理
export function updateSfpWarehouse(data) {
  return request({
    url: '/sfpWarehouse/sfpWarehouse',
    method: 'put',
    data: data
  })
}

// 半成品出入库
export function updateSfpWarehouseQuantity(data) {
  return request({
    url: '/sfpWarehouse/sfpWarehouse/updateSfpWarehouseQuantity',
    method: 'put',
    data: data
  })
}

// 删除半成品仓库管理
export function delSfpWarehouse(id) {
  return request({
    url: '/sfpWarehouse/sfpWarehouse/' + id,
    method: 'delete'
  })
}
